//
//  ThirdLoginController.m
//  ProjectForCustomer
//
//  Created by 钟游 on 2019/8/25.
//  Copyright © 2019年 钟游. All rights reserved.
//

#import "ThirdLoginController.h"
#import "LoginViewModel.h"
#import "ThirdLoginMainView.h"

@interface ThirdLoginController ()
@property(nonatomic,strong)ThirdLoginMainView * mainView;
@property(nonatomic,strong)LoginViewModel * viewModel;
@end

@implementation ThirdLoginController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"绑定关联手机号";
}
-(void)zy_getNewData{
    
}
-(void)zy_addSubviews{
    self.mainView.frame = self.view.bounds;
    [self.view addSubview:self.mainView];
}
-(void)zy_bindViewModel{
    [self.viewModel.qqSubject sendNext:self.infoDict];
}
#pragma mark --lazy
-(ThirdLoginMainView *)mainView{
    if (!_mainView) {
        _mainView=[[ThirdLoginMainView alloc]initWithViewModel:self.viewModel];
    }
    return _mainView;
}
-(LoginViewModel *)viewModel{
    if (!_viewModel) {
        _viewModel=[[LoginViewModel alloc]init];
    }
    return _viewModel;
}


@end
